package com.xxjqr.rbac.mapper;

import com.xxjqr.rbac.anno.PageQuery;
import com.xxjqr.rbac.entity.pojo.TbRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxjqr.rbac.entity.vo.RoleVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author 丁昌江
 * @since 2021-01-25
 */
public interface TbRoleMapper extends BaseMapper<TbRole> {
    @PageQuery
    List<RoleVo> selectRoleVoPage(String name, Integer status);

    @Select("select id,name from tb_role where is_delete = 0 order by sort asc")
    List<RoleVo> getRoleList();
}
